package cn.yup.domain;

import java.sql.Date;

public class Work {

    private Long id;
    private String name;
    private boolean sex;
    private int age;
    private String phone_number;
    private String unit;
    private WorkJob job;
    private Date last_date;
    private Date now_date;
    private int remain;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public String getSexToString(){
        if(sex){
            return "男";
        }
        return "女";
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhone_number() {
        return phone_number;
    }

    public void setPhone_number(String phone_number) {
        this.phone_number = phone_number;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public WorkJob getJob() {
        return job;
    }

    public void setJob(WorkJob job) {
        this.job = job;
    }

    public Date getLast_date() {
        return last_date;
    }

    public void setLast_date(Date last_date) {
        this.last_date = last_date;
    }

    public Date getNow_date() {
        return now_date;
    }

    public void setNow_date(Date now_date) {
        this.now_date = now_date;
    }

    public int getRemain() {
        return remain;
    }

    public void setRemain(int remain) {
        this.remain = remain;
    }

    @Override
    public String toString() {
        return "Work{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", phone_number='" + phone_number + '\'' +
                ", unit='" + unit + '\'' +
                ", job='" + job + '\'' +
                ", last_date=" + last_date +
                ", now_date=" + now_date +
                ", remain=" + remain +
                '}';
    }
}
